- if @project.mirror?
  .gl-mt-3.gray-content-block.second-block.clearfix
    - import_url = @project.safe_import_url
    .oneline.project-mirror-text
      = format(_('This project is mirrored from %{link}.'), link: link_to(import_url, import_url)).html_safe

      = render "shared/mirror_status"

      - if @ref.present? && @project.mirror_ever_updated_successfully? && @repository.diverged_from_upstream?(@ref)
        %span.has-tooltip{ data: { html: "true", title: branch_diverged_tooltip_message } }
          = sprite_icon('warning-solid')
          = _('This branch has diverged from upstream.')
    .project-mirror-button
      = render "shared/mirror_update_button"
